package com.theaf.basemodule.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;


@ApiModel("系统参数")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ParameterVO {
    @ApiModelProperty("编码")
    @NotNull(message = "编码不能为空")
    @Length(min=1, max=32 , message = "编码范围为{min}-{max}位")
    private String code;
    @ApiModelProperty("名称")
    @Length(min=1, max=200 , message = "名称范围为{min}-{max}位")
    @NotNull(message = "名称不能为空")
    private String name;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("是否启用")
    private boolean enabled;
}
